package cn.b.sky.user.service.model;

import cn.b.sky.common.model.ImeCommon;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * Sy_organizationVo.
 * @author dapeng.li
 * @version 1.0 
 * history 
 * Symbol Date  Person  Note
 * [1]  2015/08/03 dapeng.li  Generated.
 */
public class Organization extends ImeCommon {

  /**
   * 工厂编号:nvarchar2(20) <Primary Key>
   */
  private String siteCode;

  /**
   * 组织机构编号:nvarchar2(40) <Primary Key>
   */
  private String organizationCode;

  /**
   * 组织机构描述:nvarchar2(60)
   */
  private String organizationText;

  /**
   * 父组织机构编号:nvarchar2(40)
   */
  private String parentOrganizationCode;

  private String parentOrganizationText;

  /**
   * 锁定标志:number(1)
   */
  private Integer lockFlag;

  private String path;

  private List<Organization> children;

  public String getParentOrganizationText() {
    return parentOrganizationText;
  }

  public void setParentOrganizationText(String parentOrganizationText) {
    this.parentOrganizationText = parentOrganizationText;
  }

  public List<Organization> getChildren() {
    return children;
  }

  public void setChildren(List<Organization> children) {
    this.children = children;
  }

  public String getPath() {
    return path;
  }

  public void setPath(String path) {
    this.path = path;
  }

  @Override
  public String getSiteCode() {
    return siteCode;
  }

  @Override
  public void setSiteCode(String siteCode) {
    this.siteCode = siteCode;
  }

  public String getOrganizationCode() {
    return StringUtils.upperCase(organizationCode);
  }

  public void setOrganizationCode(String organizationCode) {
    this.organizationCode = StringUtils.upperCase(organizationCode);
  }

  public String getOrganizationText() {
    return organizationText;
  }

  public void setOrganizationText(String organizationText) {
    this.organizationText = organizationText;
  }

  public String getParentOrganizationCode() {
    return StringUtils.upperCase(parentOrganizationCode);
  }

  public void setParentOrganizationCode(String parentOrganizationCode) {
    this.parentOrganizationCode = StringUtils.upperCase(parentOrganizationCode);
  }

  public Integer getLockFlag() {
    return lockFlag;
  }

  public void setLockFlag(Integer lockFlag) {
    this.lockFlag = lockFlag;
  }

}
